/*
 * @Author: C.
 * @Date: 2024-04-18 16:41:57
 */
const TokenKey = 'Admin-Token';

// const tokenStorage = useStorage<null | string>(TokenKey, null);

export const getToken = () => {
  return localStorage.getItem(TokenKey);
};

export const setToken = (access_token: string) => {
  console.log(String(access_token));

  localStorage.setItem(TokenKey, String(access_token));
};

export const removeToken = () => {
  localStorage.removeItem(TokenKey);
};
